var koa2Req = require('koa2-request');
const getData = async (url, cookie) => {
    var options = {
        method: 'get',
        url,
        'User-Agent': 'koa-http-request',
        headers: {
            'Content-Type': 'application/json',
            'Accept': 'application/json',
            cookie
        }
    }
    const res = await koa2Req(options)
    return res
}

module.exports.getData = getData
